﻿<UserControl x:Class="WPFDemoApp.View.DateTimeControlView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:wpf="clr-namespace:MMLib.WPF.CustomControls;assembly=MMLib.WPF"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.Resources>
            <DataTemplate DataType="{x:Type sys:DateTime}">
                <wpf:DateTimeMessageControl DateTime="{Binding Path=.}" Foreground="Gray" Margin="0,2"
                                            FontSize="9"/>
            </DataTemplate>                         
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ItemsControl ItemsSource="{Binding Path=ItemsSource}" />
        <!--<Button Content="Add" Grid.Row="1" />-->
        <wpf:IconButton ImageWidth="32" Grid.Row="1" Background="#FF413F54" Height="50" Width="90" 
                        ImageSource="/WPFDemoApp;component/Resources/Contact-32.png" 
                        MouseOverBackground="#FF5D569E" />
        <wpf:IconButton ImageWidth="32" Grid.Row="1" Background="#FF413F54" Height="50" Width="90" 
                        ImageSource="/WPFDemoApp;component/Resources/Contact-32.png" 
                        MouseOverBackground="#FF5D569E"
                        IsEnabled="False"
                        HorizontalAlignment="Right"/>
    </Grid>
</UserControl>
